
/** 表格表头 */
export const tableColumns = (t: (msg:string) => string) => [
  {
    prop: 'id',
    label: 'ID',
    minWidth: 50,
  },
  {
    prop: 'name',
    label: '公众号名称',
    minWidth: 120,
  },
  {
    prop: 'appid',
    label: 'appid',
    minWidth: 120,
  },
  {
    prop: 'secret',
    label: 'secret',
    minWidth: 120,
  },
  {
    prop: 'status',
    label: '状态',
    minWidth: 120,
  },
  {
    prop: 'action',
    label: '操作',
    width: 130,
    showOverflowTooltip: false,
    fixed: 'right',
  },
];

/** 表格搜索表单 */
export const tableSearchFormItems = (t: (msg:string) => string) => [
  {
    attrs: {
      label: '名称',
      prop: 'name',
    },
    value: '',
    component: {
      is: 'el-input',
      props: {
        placeholder: '请输入公众号名称',
      },
    }
  },
  {
    attrs: {
      label: 'appid',
      prop: 'appid',
    },
    value: '',
    component: {
      is: 'el-input',
      props: {
        placeholder: '请输入appid',
      },
    }
  }
];
